package com.cvlep.appbase.util;

import java.io.File;

import org.apache.commons.configuration.Configuration;
import com.cvlep.appbase.Constants;
import com.cvlep.appbase.config.ConfigurationFileType;

/**
 * Configuration util class
 * 
 * @author Otupia
 */
public final class ConfigUtils
{
	/**
	 * For the given configuration name , find the configuration
	 * 
	 * @param configName
	 * @param fileType
	 * @return
	 */
	public static Configuration loadConfig(String configPath,ConfigurationFileType fileType)
	{
		System.out.println("/******************** load cofiguration begin ************************/");
		System.out.println("configuration file is : [" + configPath + "]");
		Configuration conf = fileType.getConfig(configPath);
		System.out.println("/******************** load cofiguration end ************************/");
		return conf;
	}
	
}
